package com.zzx.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class orderUntil {
	public static final Long generateOrderNo() {
		SimpleDateFormat sdfTime = new SimpleDateFormat("yyyyMMddHHmmssSS");
//		15位系统时间组成的字符串+ 2位随机数
		StringBuffer sBuffer = new StringBuffer();
		sBuffer.append(sdfTime.format(new Date())).append((int)(Math.random() * 99));
//      返回字符串拼接形成的长整形
		return Long.parseLong(sBuffer.toString());
	}
}
